<?php
/**
 * OaEmpset数据模型
 */
class OaEmpsetTable {
	// 数据表模型配置
	public $config = [
			'name' => 'oa_empset',
			'title' => '员工功能配置',
			'search_key' => '',
			'add_button' => 1,
			'del_button' => 1,
			'search_button' => 1,
			'check_all' => 1,
			'list_row' => '',
			'addon' => 'OaSystem'
	];
	
	// 列表定义
	public $list_grid = [ ];
	
	// 字段定义
	public $fields = [
			'emp_id' => [
					'title' => '员工ID',
					'type' => 'num',
					'field' => 'int(10) NOT NULL',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'dining_msg' => [
					'title' => '食堂消息',
					'type' => 'bool',
					'field' => 'tinyint(2) NULL',
					'value' => 1,
					'remark' => '0：关闭， 1： 开启',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'grocery_msg' => [
					'title' => '小卖部消息',
					'type' => 'bool',
					'field' => 'tinyint(2) NULL',
					'value' => 1,
					'remark' => '0: close,1: open',
					'is_show' => 1,
					'is_must' => 0
			]
	];
}	